package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum TenantAuditStatusEnum {
    // audit_status tinyint default 0 not null comment '审核状态 0 待审核 1 通过 2 驳回 3 编辑中',
    PENDING((byte) 0, "待审核"),
    PASS((byte) 1, "通过"),
    REJECT((byte) 2, "驳回"),
    EDITING((byte) 3, "编辑中"),
    ;

    private Byte status;
    private String remark;

    TenantAuditStatusEnum(Byte status, String remark) {
        this.status = status;
        this.remark = remark;
    }

    public static String getRemarkByStatus(Byte status) {
        for (TenantAuditStatusEnum logisticsStatus : TenantAuditStatusEnum.values()) {
            if (logisticsStatus.getStatus().equals(status)) {
                return logisticsStatus.getRemark();
            }
        }
        return "";
    }
}
